# # coding: utf-8
# # author: admain_maxin
#
# import tkinter
#
# # __init__.py  -->  class Tk(Misc, Wm): def __init__(self, screenName=None,
# #                                                    baseName=None, className='Tk', useTk=1,
# #                                                    sync=0, use=None):
# # 创建控件：应用程序主窗口
# frame = tkinter.Tk()
#
# # 进入消息循环队列
# # def mainloop(self, n=0):
# # 调用窗口（Tk）的主循环
# frame.mainloop()

from tkinter import *

frame1 = Tk()

# 创建两个列表
li = ["c", "python", "php", "html", "SQL", "java"]
moive = ["css", "jQuery", "bootstrap"]

# class Listbox(Widget, XView, YView):
# def __init__(self, master=None, cnf={}, **kw):
# 可以显示字符串列表的Listbox小部件。
# 有效的资源名称：background，bd，bg，borderwidth，cursor，
# exportselection，fg，font，foreground，height，highlightbackground，
# highlightcolor，highlightthickness，relief，selectbackground，
# selectborderwidth，selectforeground，selectmode，setgrid，takefocus，
# width，xscrollcommand，yscrollcommand，listvariable。
listb = Listbox(frame1, font=("楷体", 15), highlightbackground="red")
listb2 = Listbox(frame1, font=("微软雅黑", 20), highlightbackground="black")

# 列表小部件插入数据
for item in li:
    listb.insert(0, item)

for item2 in moive:
    listb2.insert(0, item2)

listb.pack()
listb2.pack()

frame1.mainloop()
frame1.title="test"
